//这里是你所有移动端的接口封装
import {get,post} from "./index"

//轮播图
export const getBanner=()=>{return get("/getbanner")}

//首页商品
export const homeGoods=()=>{return get("/gethortgoods")}

//商品详情
export const goodsInfo=params=>get("/getgoodsinfo",params)

//一、二级分类
export const getCate = ()=>get('/getcates')

//商品列表
export const goodsList = params=>get('/getgoodlist',params)

// 注册
export const register = params=>post('/register',params)

// 登录
export const login = params=>post('/login',params)

// 加入购物车
export const addCart = params=>post('/cartadd',params)

//购物车列表
export const cartList = params=>get('/cartlist',params)

// 删除购物车
export const deleteCart = params=>post('/cartdelete',params)
